package com.ruoyi.web.otherService;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.session.SaSession;
import cn.dev33.satoken.stp.StpUtil;
import com.sunjob.common.domain.system.SysExecLog;
import com.sunjob.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-08-07 15:39
 */
@FeignClient("MROLOGINSERVER")
public interface LoginServerService {
    @PostMapping("/loginServer/sso/doLoginMulti")
    Result<String> doLoginMulti(@RequestParam("name") String name,@RequestParam("pwd") String pwd,@RequestParam("terminal") String terminal);
    @GetMapping("/loginServer/queryAllTokenSession")
    Result<List<SaSession>> queryAllTokenSession();
    @PostMapping("/loginServer/sso/batchLogout")
    Result<Integer> batchLogout(@RequestBody List<Integer> ids);
}
